<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GroupClassBaseInfo extends Model
{
    //camp 套餐 課程安排
    protected $table = 'gruop_class_base_info';

    //获取课程关联
    public function class_base()
    {
        return $this->hasOne('App\Models\ClassBase','id','class_base_id');
    }

    //老师
    public function teacher()
    {
        return $this->hasOne('App\Models\Teacher','id','teacher_id');
    }

    //课室
    public function classsroom()
    {
        return $this->hasOne('App\Models\Classroom','id','class_classroom_id');
    }

    //查询店铺名
    public function store()
    {
        return $this->hasOne('App\Models\Store','id','store_id');
    }
}
